package com.zhiyou100.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.zhiyou100.entity.Exam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * 考试 存储 监听器
 * <p>
 * 有个很重要的点 ExamListener 不能被spring管理，
 * 要每次读取excel都要new,然后里面用到spring可以构造方法传进去
 *
 * @author yang
 * @version 1.0.0
 * @date 2020-09-27 16:17
 */
public class ExamListener extends AnalysisEventListener<Exam> {
    private static final Logger LOGGER = LoggerFactory.getLogger(ExamListener.class);

    @Override
    public void invoke(Exam data, AnalysisContext context) {

    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext context) {

    }
}
